// eslint-disable-next-line no-undef
const express = require('express')

const router = express.Router()

// 导入用户信息的处理函数模块
// eslint-disable-next-line no-undef
const userinfo_handler = require('../router_handler/userinfo.js')

// 获取用户基本信息
router.post('/userinfo', userinfo_handler.getUserInfo)
router.post('/updateuserInfo', userinfo_handler.updateUserInfo)
router.post('/updatepwd', userinfo_handler.updatePassword)
router.post('/update/avatar', userinfo_handler.updateAvatar)
// eslint-disable-next-line no-undef
module.exports = router
